package com.ruoyi.web.controller.erp.transport;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.erp.transport.domian.IsoUnit;
import com.ruoyi.erp.transport.service.IsoUnitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * yun.wang
 * 运输单位类型查询条件(重量等)
 */
@Api("运输单位类型查询条件")
@RestController
@RequestMapping("/transport/isoUnit")
public class IsoUnitController extends BaseController {
    @Autowired
    IsoUnitService isoUnitService;

    @ApiOperation("运输单位类型查询条件")
    @RequestMapping(value = "list",method = {RequestMethod.POST})
    @ResponseBody
    public TableDataInfo selectIsoUnitAll(
        @RequestParam(value = "unitType",required = false) String unitType
    ){
        startPage();
        List<IsoUnit> list= isoUnitService.selectIsoUnitAll(unitType);
        return getDataTable(list);
    }
}
